<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://www.yaodian100.com/jsp/yaodian100" prefix="yaodian100" %>

<head>
	<style type="text/css">
	h1 span{visibility:visible;}
	td span{visibility:visible;}
	.msg{float:left; line-height:1em; margin:0; display:block;border:1px solid #f66;padding:2px 5px;*padding:2px 5px 1px;}
	.msg.rn{background-color:#fff2f2;border-color:#f66;}
	</style>
</head>

<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath() %>'/>
<c-rt:set var="frontHostname" value='<%=ServerValue.getFrontHostname() %>'/>
<%-- 月历 --%>
<link rel="stylesheet" type="text/css" href="/css/smoothness.datepick.css" />
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick-zh-CN.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/yaodian100.common.js"></script>

<script>

</script>

<s:if test="hasErrors()">
<p><s:actionerror cssClass="msg rn" /></p>
</s:if>
<s:if test="hasActionMessages()">
<p><s:actionmessage cssClass="msg rn" /></p>
</s:if>
<s:if test="hasFieldErrors()">
<p><s:fielderror cssClass="msg rn" /></p>
</s:if>

<h1>银行分期基本设置<br>
<div class="f-link"><a href="add.do">新增</a> <a href="#" onclick="document.creditcardForm.submit();">搜寻</a></div>
</h1>
<s:form action="setting/search.do" namespace="/creditcard" method="post" name="creditcardForm">
<table width="100%">
	<tr>
		<td width="15%">
			信用卡银行
		</td>
		<td width="35%">
			<s:textfield id="paraName" name="paraName" />
		</td>
		<td width="15%">&nbsp;</td>
		<td width="35%">&nbsp;</td>
	</tr>
</table>
</s:form>
<br/>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tb-1">
	<thead>
		<tr>
			<th width="15%">信用卡银行</th>
			<th>分期设置</th>
			<th>&nbsp;</th>
			<th>&nbsp;</th>
		</tr>
	</thead>
	<s:if test="%{campaignList.size > 0}">
	<tbody>
		<s:iterator value="campaignList" var="campaign">
		<tr>
			<td>${campaign.creditcardName}</td>
			<td>
				<table width="100%" class="tb-05">
					<thead>
						<tr>
							<th>支持期数</th>
							<th>会员自付手续费(%)</th>
							<th>交易金额上下限</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="#campaign.periods" var="period">
						<tr>
							<td>${period}</td>
							<td><s:property value="periodFees[#period]" /></td>
							<td><s:property value="amountLimits[#period][0]" />~<s:property value="amountLimits[#period][1]" /></td>
						</tr>
						</s:iterator>
					</tbody>
				</table>
			</td>
			<td><a href="edit.do?bankId=${campaign.id}">修改</a></td>
			<td><a href="delete.do?bankId=${campaign.id}">删除</a></td>
		</tr>
		</s:iterator>
	</tbody>
	</s:if>
	<s:else>
	<tbody>
		<tr><td colspan="3">查无资料!!</td></tr>
	</tbody>
	</s:else>
</table>
<yaodian100:pageutil link="search.do" pagerObj="${pager}" />